package com.example.springbootvuetest.service;

import com.example.springbootvuetest.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springbootvuetest.entity.dto.TableDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author shuoye
 * @since 2023-03-14
 */
public interface IOrderService extends IService<Order> {
    Map<String, Object> getAllOrder(Integer pageNum, Integer pageSize);

    boolean updateOrder(Order order);

    boolean addOrder(Order order);

    List<Order> getMySoldIdle(Integer userId);

    List<Order> getMyOrder(Integer userId);

    List<Order> exportOrder();

    Order getOrder(Integer id);
}
